package ${pPackage};

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;

import ${pPackage}.common.utils.IdWorker;

@SpringBootApplication // 引导类
@MapperScan(basePackages = "${pPackage}.mapper") // 扫描mapper
public class AppRunApplication {
    public static void main(String[] args) {
        SpringApplication.run(AppRunApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }

}
